#pragma once
#include "control.h"

#include <memory>
using std::unique_ptr;

class EventHandler
{
public:
	EventHandler(Control& parent, Control& sender, void* action);
	~EventHandler(void);

	void invoke(void* args);

private:
	Control& m_parent;
	Control& m_sender;
	void* m_action;
};
typedef unique_ptr<EventHandler> EventHandlerPtr;

